<div id="formerror"></div>
<!-- Add Form -->
<div id="formaction">
    <div class="formPanel02">
        <?php
            echo validation_errors("<li>", "</li>");
        ?>
        <fieldset class="myfieldset">
            <legend>Add a user</legend>
            <form id="input_form" action="<?php echo base_url(); ?><?php echo $module; ?>/signup" method="post">
                <table id="tbfrmaction">
                    <tr>
                        <td>Tên đăng nhập</td>
                        <td>
                            <input type="text" id="txtUsername" name="txtUsername" size="30" class="required" 
                                   value="<?php if(isset($_POST['txtUsername'])) echo $_POST['txtUsername']; ?>" />
                        </td>
                    </tr>
                    <tr>
                        <td>Mật khẩu</td>
                        <td><input type="password" id="txtPass" name="txtPass" size="30" class="required" /></td>
                        <td>Xác nhận mật khẩu</td>
                        <td><input type="password" id="txtRePass" name="txtRePass" size="30" equalTo="#txtPass" /></td>
                    </tr>
                    <tr>
                        <td>Họ tên</td>
                        <td><input type="text" id="txtFullname" name="txtFullname" size="30" class="required" 
                                   value="<?php if(isset($_POST['txtFullname'])) echo $_POST['txtFullname']; ?>" /></td>
                        <td>Địa chỉ</td>
                        <td><input type="text" id="txtAddress" name="txtAddress" size="30" class="required" 
                                   value="<?php if(isset($_POST['txtAddress'])) echo $_POST['txtAddress']; ?>" /></td>
                    </tr>
                    <tr>
                        <td>Điện thoại</td>
                        <td><input type="text" id="txtPhone" name="txtPhone" size="30" class="required digits" 
                                   value="<?php if(isset($_POST['txtPhone'])) echo $_POST['txtPhone']; ?>" /></td>
                        <td>Email</td>
                        <td><input type="text" id="txtEmail" name="txtEmail" size="30" class="required email" 
                                   value="<?php if(isset($_POST['txtEmail'])) echo $_POST['txtEmail']; ?>" /></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><input type="submit" id="btnSubmit" class="button" name="ok" value="Đăng ký" /></td>
                    </tr>
                </table>
            </form>
        </fieldset>
    </div>
</div>
<div id="dialog" title="Warning"></div>